it as HVM or PV rather than using the config time option. The forthcoming
XenNetDevice will need to check. This is also the first step toward running
PV and HVM domains at the same time.
Signed-off-by: Daniel Stekloff <dsteklof@us.ibm.com>
self.name = getUniqueName()
self.config = config
+ # Set domain type, either PV for ParaVirt domU or HVM for
+ # FullVirt domain
+ if ENABLE_HVM_SUPPORT:
+ self.type = "HVM"
+ else:
+ self.type = "PV"
def start(self):
extra=output,
errorcode=ret)
+ # HVM domains require waiting for boot
+ if self.getDomainType() == "HVM":
+ waitForBoot()
+
def stop(self):
prog = "xm"
cmd = " shutdown "
def getId(self):
return domid(self.getName());
+ def getDomainType(self):
+ return self.type
+
class XmTestDomain(XenDomain):
XenDomain.__init__(self, config.getOpt("name"), config=config)
- def start(self):
- XenDomain.start(self)
- if ENABLE_HVM_SUPPORT:
- waitForBoot()
-
def minSafeMem(self):
return 32